package cn.serenedream.housedecoration.serivce;

import cn.serenedream.housedecoration.dao.SaleSaleProductsRepository;
import cn.serenedream.housedecoration.entity.SaleSaleProducts;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SaleSaleProductsService {
    @Autowired
    SaleSaleProductsRepository saleProductsRepository;

    public void save(SaleSaleProducts saleSaleProducts) {
        saleProductsRepository.save(saleSaleProducts);
    }

    public void deleteBySaleId(String id) {
        saleProductsRepository.deleteBySaleId(id);
    }
}
